<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>{{number}}</p>
        <button type="button" value="增加[绑定事件处理器]" name="btnGetNumber" v-on:click="getNumber"></button>
        <button type="button" value="增加[内联方法调用]" name="btnGetNumber" @click="getNumber()"></button>
    </div>
    <script>
        var a = new Vue({
            el: '#app',
            data: {
                number: 0,
            },
            methods: {
                getNumber: function(e) {
                    debugger
                    this.number += 1;
                }
            }
        })
    </script>
</body>

</html>